package com.t.bricks.bussiness.db.entity.bankaccount;

import com.t.bricks.bussiness.db.entity.bankaccount.base.BankAccountBase;

/**
 * 银行账号'BankAccount'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class BankAccount extends BankAccountBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return BankAccount
	 */
	public static BankAccount copy(BankAccount source) {
		if (null == source) {
			return null;
		}
		
		BankAccount target = new BankAccount();
		target.setsId(source.getsId());
		target.setsName(source.getsName());
		target.setsBankcard(source.getsBankcard());
		target.setsBank(source.getsBank());
		target.setsAddress(source.getsAddress());
		target.setsBelongName(source.getsBelongName());
		target.setsUserName(source.getsUserName());
		target.setsType(source.getsType());
		target.setsMemo(source.getsMemo());
		target.setsCreator(source.getsCreator());
		target.setdCreateDate(source.getdCreateDate());
		target.setsModifieder(source.getsModifieder());
		target.setdModifiedDate(source.getdModifiedDate());
		target.setiState(source.getiState());
		target.setiIndex(source.getiIndex());
		target.setiVersion(source.getiVersion());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return BankAccount
	 */
	@Override
	public BankAccount clone() {
		return copy(this);
	}
	
}
